package com.yj.cmp.sdk.fusioncompute.compute.task.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class TaskListVo {

    @JsonProperty("total")
    private Integer total;
    @JsonProperty("tasks")
    private List<TasksDTO> tasks;

    @NoArgsConstructor
    @Data
    public static class TasksDTO {
        @JsonProperty("cancelable")
        private Boolean cancelable;
        @JsonProperty("cancelled")
        private Boolean cancelled;
        @JsonProperty("entityName")
        private String entityName;
        @JsonProperty("entityUrn")
        private String entityUrn;
        @JsonProperty("finishTime")
        private String finishTime;
        @JsonProperty("progress")
        private Integer progress;
        @JsonProperty("startTime")
        private String startTime;
        @JsonProperty("status")
        private String status;
        @JsonProperty("type")
        private String type;
        @JsonProperty("uri")
        private String uri;
        @JsonProperty("urn")
        private String urn;
        @JsonProperty("user")
        private String user;
        @JsonProperty("reason")
        private String reason;
        @JsonProperty("reasonDes")
        private String reasonDes;
    }
}
